<?php
		require_once('../inc/EmployeeInfo.php');
		require_once('../inc/functions.php');

		if (isset($_REQUEST['yes']))			
			deleteInfo($_REQUEST['id']);
		else if (isset($_REQUEST['no']))
			notDeleteEntry();
		else 
			$id = $_REQUEST['id'];
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<link type="text/css" rel="stylesheet" href="../inc/bootstrap.css" />
<title>Delete</title>
</head>

<body>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.js"></script>

	<div class="container">
            <div id="contents">
	<div class="delete-content">

		<h4>This employee's info will be deleted permanetly! Do you want to continue?</h4>
		<div class="modal-footer">
		<button onclick="window.location='delete.php?id=<?=$id?>&yes=yes';" type="submit" name="yes">Yes</button>
		<button onclick="window.location='delete.php?id=<?=$id?>&no=no';" type="submit" name="no">No</button>
	  </div>
	 </div>
	</div>
   </div>

</body>

</html>
